<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	>

<f:view contentType="text/html">

	<h:head>
		<f:facet name="first">
			<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
			<title>LionCredo Testing Framework</title>
		</f:facet>

		<script type="text/javascript"
			src="#{request.contextPath}/templates/js/jquery.easing.1.3.js" />
		<script type="text/javascript"
			src="#{request.contextPath}/templates/js/jquery.timer.js" />
		<script type="text/javascript"
			src="#{request.contextPath}/templates/js/jquery.tooltip.js" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/templates/css/default.css" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/templates/css/syntaxhighlighter/syntaxhighlighter.css" />
		<script type="text/javascript"
			src="#{request.contextPath}/templates/js/main.js" />
		<script type="text/javascript"
			src="#{request.contextPath}/templates/js/calendari18n.js" />
		<ui:insert name="head"></ui:insert>

		<script type="text/javascript">
			$(function() {
				$('.sidebar a').hover(function() {
					$(this).toggleClass('ui-state-hover');
				})
			});
		</script>
	</h:head>

	<h:body styleClass="ui-widget-content">

		<div id="header" class="ui-widget ui-widget-header">
			<div>
				<h:form  prependId="false">
				<h:outputLabel value="　Welcome To Credo's FrameWork" style="font-size: xx-large;"/>
				</h:form>
				
			</div>
			<div id="top_down_right">
				<h:form  id="mainFormId" prependId="false">
					<p:commandButton id="currentUserBtn" disabled="true"
						styleClass="topBtnNoRoundness"
						value="当前用户：#{loginBean.userinfo.realname eq null?loginBean.userinfo.account:loginBean.userinfo.realname } " />
					<p:commandButton styleClass="topBtnNoRoundness" value="个人资料修改"
						oncomplete="changeSelectOneMenuWidth();modifyAboutMeDlgVar.show();"
						actionListener="#{loginBean.resetForm()}"
						update=":modifyAboutMeFormId" />
					<p:commandButton styleClass="topBtnNoRoundness" value="短消息" />
					<p:commandButton styleClass="topBtnNoRoundness" value="返回首页" oncomplete="window.location.href = '/base/faces/index.xhtml';" />
					<p:commandButton styleClass="topBtnNoRoundness" value="注销" onclick="confirmation.show()" />

					<p:confirmDialog message="您确定要注销吗?" header="确认注销" severity="alert" widgetVar="confirmation">
						<p:commandButton value="确定" oncomplete="confirmation.hide()" actionListener="#{loginBean.logoutSystem()}" />
						<p:commandButton value="取消" onclick="confirmation.hide()" type="button" />
					</p:confirmDialog>
					<p:themeSwitcher value="#{themeSwitcherBean.theme}" styleClass="topBtnNoRoundness" 
						style="width:175px;top:10px;margin-left: 9px;" effect="fade" var="t">
						<f:selectItem itemLabel="选择主题" itemValue="" />
						<f:selectItems value="#{themeSwitcherBean.advancedThemes}"
							var="theme" itemLabel="#{theme.name}" itemValue="#{theme}" />
						<p:ajax listener="#{themeSwitcherBean.saveTheme}" oncomplete="changeSelectOneMenuWidth();"/>
						<p:column>
							<p:graphicImage value="/images/themes/#{t.image}" />
						</p:column>
						<p:column>
                            #{t.name}
                        </p:column>
					</p:themeSwitcher>
				</h:form>
				<ui:include src="modifyUserinfo.xhtml" />
			</div>
		</div>

		<div id="header"
			style="margin-top: 0px; height: 39px; padding: 0px 0px; border-width: 0px;">
			<h:form id="menuTemId">
				<p:menubar style="border-radius: 0px 0px 0px 0px;border-width:0px;">
					<p:submenu label="　用户管理">
						<p:menuitem value="用户信息管理"
							url="/faces/usermanage/userdata/index.xhtml" />
						<p:menuitem value="用户权限管理" url="#" />
					</p:submenu>

					<p:submenu label="　基础功能">
						<p:menuitem value="常用链接管理" url="#" />
						<p:menuitem value="常用功能管理" url="#" />
					</p:submenu>

					<p:submenu label="　报表查询">
						<p:submenu label="汇总">
							<p:menuitem value="资金汇总查询" url="#" />
							<p:menuitem value="税额汇总查询" url="#" />
							<p:menuitem value="货量汇总查询" url="#" />
						</p:submenu>
						<p:submenu label="增值税">
							<p:menuitem value="增值税税率变化查询" url="#" />
							<p:menuitem value="增值税税额查询" url="#" />
						</p:submenu>
					</p:submenu>

				</p:menubar>
			</h:form>
		</div>

		<div id="main_id" class="main">
			<ui:insert name="content">
			</ui:insert>
		</div>

		<div id="footer"
			class="ui-widget ui-widget-header ui-corner-all bottom">
			<div id="down_left">&copy;2012 LionCredo,版权所有.</div>
			<div id="down_right">
				<div id="down_right_time">现在时刻：</div>
				<div id="down_right_timer"></div>
				&nbsp;&nbsp;&nbsp;
			</div>
		</div>
		<p:ajaxStatus onstart="statusDialog.show();showTooltip();"
			onsuccess="statusDialog.hide();removeFirstBtnCSS();" />

		<p:dialog  widgetVar="statusDialog" showHeader="false" resizable="false">
			<p:graphicImage value="/images/ajaxloadingbar.gif"/><br/>
			<h:outputLabel value="　　　　数据加载中,请稍候......" />
		</p:dialog>
		<ui:insert name="dialog"></ui:insert>
	</h:body>


</f:view>
</html>
